/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package tugas1;

import java.util.Scanner;

/**
 *
 * @author reziyus
 */
public class Segitiga extends Shape {
	
	public static void main(String[] args) {
        System.out.println("Hitung Luas dan Keliling Bangun Segitiga\n");
        Scanner sc = new Scanner(System.in);
        System.out.print("Masukkan Alas: ");
        float rusuk1 = sc.nextFloat();
        System.out.print("Masukkan Rusuk: ");
        float rusuk2 = sc.nextFloat();
        System.out.print("Masukkan Tinggi: ");
        float height = sc.nextFloat();
        
        System.out.println("Luas Segitiga adalah " + luasSegitiga(rusuk1, height));
        System.out.println("Keliling Segitiga adalah " + kelilingSegitiga(rusuk1, rusuk2));
    }
}